<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/view/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>网上报名-合肥猎头网</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="${contextPath}/view/css/user.css"
	type="text/css" media="all" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<script type="text/javascript">
<!--
	function editA(examId) {
		document.getElementById("eid").value = examId;
		return true;
	}
	function showD(examId) {
		document.getElementById("eid").value = examId;
		return true;
	}
	function showO(examId) {
		document.getElementById("eid").value = examId;
		return true;
	}
	function deleteA(examId) {

		if (!confirm("确定要删除该公告吗？")) {
			return false;
		}
		document.getElementById("eid").value = examId;
		return true;
	}

	function doLogout() {
		adminLogoutForm.submit();
	}
//-->
</script>
</head>
<body>

	<%@include file="/view/adminMenu.jsp"%>

	<div class="midBox">
		<div class="midTitle">公告信息检索</div>
		<div class="cnt">

			<table width="100%" border="0" cellpadding="0" cellspacing="1"
				bgcolor="#E1E1E1">
				<tr>
					<td height="32" align="left" bgcolor="#FFFFFF" valign="middle"
						style="padding-left: 10px;"><b><span
							style="color: #666666">公告信息检索</span></b></td>
				</tr>
				<form:form name="announcementListForm" method="post"
					action="${contextPath}/announcementList.action"
					commandName="AnnouncementListCommand">
					<form:hidden path="eid" />
					<tr bgcolor="#FFFFFF">
						<td valign="top" align="center" height="25"
							style="padding-top: 5px;">
							<table width="95%" border="0" cellpadding="4" cellspacing="0"
								bgcolor="#E1E1E1">
								<tr bgcolor="#ffffff">
									<td style="text-align: right; width: 10%;">名称：</td>
									<td style="text-align: left; width: 15%"><form:input
											path="name" maxlength="32" size="15"
											cssClass="bbsInput_short" /></td>
									<td style="text-align: right; width: 10%;">状态：</td>
									<td style="text-align: left; width: 20%"><form:select
											path="status" id="status"
											items="${AnnouncementListCommand.statusValues }"
											itemValue="id" itemLabel="name">
										</form:select></td>
								</tr>
								<tr bgcolor="#ffffff">
									<%--
									<td style="text-align: right; width: 10%;"></td>
									<td style="text-align: left; width: 15%"></td>

									<td style="text-align: right; width: 10%;"></td>
									 --%>
									<td style="text-align: center; width: 15%" colspan="4"><input
										type="submit" value="筛选" name="btnSearch" />&nbsp;&nbsp;<input
										type="submit" value="追加" name="btnAdd" />
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr bgcolor="#FFFFFF">
						<td colspan="2" valign="top" align="center"
							style="padding-top: 5px; padding-bottom: 5px;">
							<table width="99%" border="0" cellpadding="4" cellspacing="1"
								bgcolor="#E1E1E1">
								<tr bgcolor="#f7f7f7">
									<th style="width: 4%;" nowrap="nowrap">序号</th>
									<th nowrap="nowrap">名称</th>
									<th style="width: 5%;" nowrap="nowrap">发布时间</th>
									<th style="width: 5%;" nowrap="nowrap">报名时间</th>
									<th style="width: 7%;" nowrap="nowrap">准考证打印时间</th>
									<th style="width: 10%;">考试时间</th>
									<th style="width: 11%;">成绩查询时间</th>
									<th style="width: 8%;" nowrap="nowrap"></th>
								</tr>
								<c:set var="totalCount" value="0" />
								<c:set var="totalPassed" value="0" />
								<c:set var="totalUnPassed" value="0" />
								<c:forEach items="${AnnouncementListCommand.result}" var="exam"
									varStatus="status">
									<c:set var="totalCount" value="${totalCount + 1 }" />
									<tr bgcolor="#ffffff">
										<td style="text-align: right" nowrap="nowrap">${status.index
											+ 1}</td>
										<td>${exam.name}</td>
										<td style="text-align: center" nowrap="nowrap"><fmt:formatDate
												value="${exam.publishDate}" pattern="yyyy/MM/dd" /></td>
										<td style="text-align: center" nowrap="nowrap"><fmt:formatDate
												value="${exam.applyBeginDate}" pattern="yyyy/MM/dd HH:mm" /><br />~<fmt:formatDate
												value="${exam.applyDeadDate}" pattern="yyyy/MM/dd HH:mm" /></td>
										<td style="text-align: center" nowrap="nowrap"><fmt:formatDate
												value="${exam.admissionPrintStart}"
												pattern="yyyy/MM/dd HH:mm" /><br />~<fmt:formatDate
												value="${exam.admissionPrintEnd}" pattern="yyyy/MM/dd HH:mm" /></td>
										<td style="text-align: center" nowrap="nowrap"><fmt:formatDate
												value="${exam.examDate}" pattern="yyyy/MM/dd" /><br />${exam.examTime}</td>
										<td style="text-align: center" nowrap="nowrap"><fmt:formatDate
												value="${exam.scorePublishDate}" pattern="yyyy/MM/dd HH:mm" /></td>
										<td style="text-align: center" nowrap="nowrap"><input
											type="submit" value="修改" name="actionEditA"
											onclick="return editA('${exam.id}')" />&nbsp;<input
											type="submit" value="删除" name="actionDeleteA"
											onclick="return deleteA('${exam.id}');" /><br />
											<input type="submit" value="部门管理" name="actionShowDepart"
											onclick="return showD('${exam.id}')" style="width: 75px;" />&nbsp;<input
											type="submit" value="岗位管理" name="actionShowOffice"
											onclick="return showO('${exam.id}')" style="width: 75px;" /></td>
									</tr>
								</c:forEach>
							</table>
						</td>
					</tr>
				</form:form>
			</table>
		</div>
	</div>
	<%@include file="/view/footer.jsp"%>
</body>
</html>